from rest_framework.serializers import ModelSerializer
from db_access import models


class AssetsSerializer(ModelSerializer):
    class Meta:
        model = models.Assets
        fields = '__all__'
        # exclude = ('id', 'assets_fk')


class ServerSerializer(ModelSerializer):
    class Meta:
        model = models.Server
        fields = '__all__'
        # exclude = ('id', 'assets_fk')


class DiskSerializer(ModelSerializer):
    class Meta:
        model = models.Disk
        fields = '__all__'
        # exclude = ('id', 'assets_fk')


class MemorySerializer(ModelSerializer):
    class Meta:
        model = models.Memory
        fields = '__all__'
        # exclude = ('id', 'assets_fk')


class NicSerializer(ModelSerializer):
    class Meta:
        model = models.Nic
        fields = '__all__'
        # exclude = ('id', 'assets_fk')


class AssertChangeSerializer(ModelSerializer):
    class Meta:
        model = models.AssetsChange
        fields = '__all__'
        # exclude = ('id', 'assets_fk')


class ErrorLogSerializer(ModelSerializer):
    class Meta:
        model = models.ErrorLog
        # exclude = ('id', 'assets_fk')
